	$(function(){
        //按钮单击时执行
        $("#profile_do").click(function(){
			toastr.options = {
			  "closeButton": true,
			  "debug": false,
			  "progressBar": true,
			  "positionClass": "toast-bottom-full-width",
			  "onclick": null,
			  "showDuration": "400",
			  "hideDuration": "1000",
			  "timeOut": "7000",
			  "extendedTimeOut": "1000",
			  "showEasing": "swing",
			  "hideEasing": "linear",
			  "showMethod": "fadeIn",
			  "hideMethod": "fadeOut"
			}
			var questions1 = $('#questions1').val();
			var questions2 = $('#questions2').val();
			var questions3 = $('#questions3').val();
			var answer1 = $('#answer1').val();
			var answer2 = $('#answer2').val();
			var answer3 = $('#answer3').val();
            //Ajax调用处理
			var profile_do = $.ajax({
               type: "POST",
               url: "index.php?m=user&c=user_profile&a=profile_safe_do",
               data: "questions1="+questions1+"&questions2="+questions2+"&questions3="+questions3+"&answer1="+answer1+"&answer2="+answer2+"&answer3="+answer3,
               async: false
            }).responseText;
			if (profile_do == "1") {
				toastr.success("用户数据更新成功！");
				self.location.reload();
			} else {
				toastr.error("请勿提交非法数据！");
				self.location.reload();
			}
         });		 
    });